package com.lingtianyu.tech.erbaoshen.core.consumer.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ErBaoShenOpenFeignConfig.SERVER_NAME_KEY)
public interface OpenFeignErBaoShenClient {
    @PostMapping("/erbaoshen/rpc/service/{className}/{methodName}")
    ResponseEntity<String> runRpcService(@PathVariable("className") String className, @PathVariable("methodName") String methodName, @RequestBody String erBaoShenRpcReqString);
}
